package com.yj.web.WeChat.Bean;

import com.yj.web.util.json.WxGsonBuilder;
import lombok.Data;

import java.io.Serializable;

/**
 * Created by yanlinyang on 2017/9/10.
 */
@Data
public class WxAccessToken implements Serializable {
    private String accessToken;

    private int expiresIn = -1;

    public static WxAccessToken fromJson(String json) {
        return WxGsonBuilder.create().fromJson(json, WxAccessToken.class);
    }
}
